﻿@model _1._7._2015_EF_Movies.Models.MoviesViewModel
@{
    ViewBag.Title = "Home Page";
}

<div class="jumbotron">
    <h1>Current Movies</h1>
</div>

<div class="row">
    <div class="col-md-12">
        <table class="table teable-striped table-bordered">
            <tr>
                <th>Movie</th>
            </tr>
            @foreach(var movie in Model.Movies)
            {
                <tr>
                    <td>@(Html.ActionLink(@movie.Title, "Detail", new { Id = movie.MovieId }))</td>
                </tr>

            }
        </table>
 
    </div>
 
    
</div>